<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page session="false" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<jsp:include page="/WEB-INF/views/common/header.jsp" />

<link rel="stylesheet" href="<c:out value="${pageContext.request.contextPath}"/>/resources/common/bootstrap/css/bootstrap-datepicker.min.css">

<script type="text/javascript" src="<c:out value="${pageContext.request.contextPath}"/>/resources/js/repair_create_popup.js"></script>
<script type="text/javascript" src="<c:out value="${pageContext.request.contextPath}"/>/resources/common/bootstrap/js/bootstrap-datepicker.min.js"></script>

<script type="text/javascript">
	$(document).ready(function() {
		$('#repair_order_date').datepicker({
			format: "yyyy-mm-dd",
			autoclose: true,
			todayHighlight: true
		})
	});
</script>
</head>
<body>
	<jsp:include page="/WEB-INF/views/main/menu.jsp" />

	<div class="container">
		<div class="page-header">
			<h3>수리 요청 작성</h3>
		</div>
		<form class="form-inline">
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group form-group-sm">
						<label class="control-label" for="customer_code" style="width: 100px">고객</label> 
						<input type="text" class="form-control" id="customer_code" placeholder="고객 코드" disabled>
						<div class="input-group">
							<label class="sr-only" for="customer_name">고객명</label> 
							<input type="text" class="form-control" id="customer_name" placeholder="고객 명" disabled> 
							<span class="input-group-btn"> 
								<input type="button" class="btn btn-primary btn-sm" id="customer_btn" value="선택" />
							</span>
						</div>
					</div>
				</div>
			</div>
			<p />
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group form-group-sm">
						<label class="control-label" for="manager_code" style="width: 100px">관리국</label> 
						<input type="text" class="form-control" id="manager_code" placeholder="관리국 코드" disabled>
						<div class="input-group">
							<input type="text" class="form-control" id="manager_name" placeholder="관리국 명" disabled> 
							<span class="input-group-btn"> 
								<input type="button" class="btn btn-primary btn-sm" id="manager_btn" value="선택" />
							</span>
						</div>
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group form-group-sm">
						<label class="control-label" for="operator_code" style="width: 100px">운용국</label> 
						<input type="text" class="form-control" id="operator_code" placeholder="운용국 코드" disabled>
						<div class="input-group">
							<input type="text" class="form-control" id="operator_name" placeholder="운용국 명" disabled> 
							<span class="input-group-btn"> 
								<input type="button" class="btn btn-primary btn-sm" id="operator_btn" value="선택" />
							</span>
						</div>
					</div>
				</div>
			</div>
			<p />
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group form-group-sm">
						<label class="control-label" for="repair_client" style="width: 100px">수리의뢰자</label> 
						<input type="text" class="form-control" id="repair_client" size="59">
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group form-group-sm">
						<label class="control-label" for="repair_client_contact" style="width: 100px">의뢰자 연락처</label> 
						<input type="text" class="form-control" id="repair_client_contact" size="59">
					</div>
				</div>
			</div>
			<p />
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group form-group-sm">
						<label class="control-label" for="repair_client_email" style="width: 100px">의뢰자 E-MAIL</label> 
						<input type="text" class="form-control" id="repair_client_email" size="59">
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group form-group-sm">
						<label class="control-label" for="repair_order_day" style="width: 100px">수리의뢰일</label> 
						<div class="input-group date" id="repair_order_date">
  							<input type="text" class="form-control" size="52" disabled="disabled">
  								<span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span>
						</div>
					</div>
				</div>
			</div>
			<p />
			<hr />
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group form-group-sm">
						<label class="control-label" for="repair_order_no" style="width: 100px">Order No</label> 
						<input type="text" class="form-control" id="repair_order_no" size="59">
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group form-group-sm">
						<label class="control-label" for="serial_no" style="width: 100px">Serial No.</label> 
						<input type="text" class="form-control" id="serial_no" size="59">
					</div>
				</div>
			</div>
			<p />
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group form-group-sm">
						<label class="control-label" for="repair_type" style="width: 100px">수리유형</label> 
						<input type="text" class="form-control" id="repair_type_code" placeholder="유형 코드" disabled>
						<div class="input-group">
							<input type="text" class="form-control" id="repair_type_name" placeholder="유형 명" disabled> 
							<span class="input-group-btn"> 
								<input type="button" class="btn btn-primary btn-sm" id="repair_type_btn" value="선택" />
							</span>
						</div>
					</div>
				</div>
				<div class="col-sm-6">
					<div class="form-group form-group-sm">
						<label class="control-label" for="receipt_dept" style="width: 100px">접수부서</label> 
						<input type="text" class="form-control" id="receipt_dept_code" placeholder="부서코드" disabled>
						<div class="input-group">
							<input type="text" class="form-control" id="receipt_dept_name" placeholder="접수 부서명" disabled> 
							<span class="input-group-btn"> 
								<input type="button" class="btn btn-primary btn-sm" id="receipt_dept_btn" value="선택" />
							</span>
						</div>
					</div>
				</div>
			</div>
			<p />
			<div class="row">
				<div class="col-sm-6">
					<div class="form-group form-group-sm">
						<label class="control-label" for="project_div" style="width: 100px">프로젝트구분</label> 
						<input type="text" class="form-control" id="project_code" placeholder="프로젝트 코드" disabled>
						<div class="input-group">
							<input type="text" class="form-control" id="project_name" placeholder="프로젝트 명" disabled> 
							<span class="input-group-btn"> 
								<input type="button" class="btn btn-primary btn-sm" id="project_div_btn" value="선택" />
							</span>
						</div>
					</div>
				</div>
				<div class="col-sm-2">
					<div class="form-group form-group-sm">
						<label class="control-label" for="parcel_service" style="width: 100px">택배사용여부</label> 
						<label>
							<input type="radio" name="optionsRadios" id="parcel_service_ok" value="ok" checked>
							&nbsp;사용
						</label>	
					</div>
				</div>
				<div class="col-sm-1">
					<div class="form-group form-group-sm">
						<label>
							<input type="radio" name="optionsRadios" id="parcel_service_nok" value="nok" >
							&nbsp;미사용
						</label>
					</div>
				</div>
			</div>
		</form>
		<p />
		<br />
		<table data-toggle="table"
			<%-- data-url="<c:out value="${pageContext.request.contextPath}"/>/resources/test_data/data.json" --%>
			data-height="400" data-pagination="true" data-search="false">
			<thead>
				<tr>
					<th data-field="state" data-checkbox="true"></th>
					<th data-field="no" data-align="center">No</th>
					<th data-field="serial_no" data-align="center">Serial No.</th>
					<th data-field="model_code" data-align="center">기종 Code</th>
					<th data-field="item_code" data-align="center">품목코드</th>
					<th data-field="item_name" data-align="center">품목명</th>
					<th data-field="rev" data-align="center">Rev</th>
					<th data-field="making_date" data-align="center">제조일자</th>
					<th data-field="pop_outputday" data-align="center">POP출하일</th>
					<th data-field="warranty_number" data-align="center">Warranty Number</th>
					<th data-field="customer_warranty" data-align="center">고객 Warranty</th>
					<th data-field="customer_claim_check" data-align="center">고객청구 여부</th>
					<th data-field="maintenance_contrack_check" data-align="center">유지보수 계약체결 여부</th>
					<th data-field="cost_contrack_check" data-align="center">단가계약 체결 여부</th>
					<th data-field="deadline" data-align="center">납기일</th>
					<th data-field="repair_degree" data-align="center">수리차수</th>
				</tr>
			</thead>
		</table>
		<p />
		<div class="row">
			<div class="col-sm-push-10 col-sm-2">
				<a href=""><input type="button"
					class="btn btn-primary btn-sm btn-block" id="add" value="작성"></a>
			</div>
		</div>
	</div>
	<div class="modal fade" role="dialog" id="modalDiv">
		<div class="modal-dialog">
			<div class="modal-content"></div>
		</div>
	</div>
</body>
</html>